package com.yun.dao.db;


import com.yun.pojo.db.Time;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;

@Repository
@Mapper
public class DbTime {

    private static Map<Integer, Time> time = null;

        static {
            time = new HashMap<Integer,Time>();
            time.put(1,new Time(1,"上午"));
            time.put(2,new Time(2,"下午"));
            time.put(3,new Time(3,"晚上"));
        }

        public Collection<Time> getSetTime(){
            return time.values();
        }
}

